package com.example.huadi1.mapper;

import com.example.huadi1.dto.TeacherGetBook;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherGetBookMapper {
    TeacherGetBook selectTeacherGetBook(@Param("textbookId") int textbookId, @Param("teacherId") int teacherId);

    void insertTeacherGetBook(TeacherGetBook teacherGetBook);

    void updateTeacherGetBook(TeacherGetBook teacherGetBook);

    void deleteTeacherGetBook(@Param("textbookId") int textbookId, @Param("teacherId") int teacherId);

    List<TeacherGetBook> selectTeacherGetBookByUserId(Integer userId);
    Integer selectIsReturnBookByTextbookIdAndTeacherId(@Param("textbookId") int textbookId, @Param("teacherId") int teacherId);
}
